<template>
  <view>
    <Amount
      :amount="showNum ? amountSum : _hide(amountSum)"
      @handleYanjin="handleYanjin"
      @handleShuaxin="handleShuaxin"
      :type="type"
      :showicon="showNum ? 'yanjin-k' : 'yanjin-g'"
    ></Amount>
    <!-- 平台 -->

    <Detail :assetDetails="assetDetails" :showNum="true"></Detail>
  </view>
</template>

<script setup>
import { _hide } from '@/utils/public.js'
import Amount from './allamount.vue'
import Detail from './allamountDetail.vue'

const props = defineProps({
  assetDetails: {
    type: Object
  },
  amountSum: {
    type: String
  },
  showNum: {
    type: Boolean
  },
  type: {
    type: String
  }
})
// 点击小眼睛
const emit = defineEmits(['handleYanjin','handleShuaxin'])
const handleYanjin = () => {
  emit('handleYanjin')
}
const handleShuaxin = () => {
  emit('handleShuaxin')
}
</script>

<style lang="scss" scoped></style>
